package game.hiram;

public class Inventory {
	public Item[][] items;
	public Inventory() {
		items = new Item[4][7];
	}

	public void remove(Item i) {
		LABEL:for(int j = 0; j < items.length; j++) {
			for(int k = 0; k < items[j].length; k++) {
				if(items[j][k] == i) {
					items[j][k] = null;
					break LABEL;
				}
			}
		}
	}

	public void add(Item i) {
		LABEL:for(int j = 0; j < items.length; j++) {
			for(int k = 0; k < items[j].length; k++) {
				if(items[j][k] == null) {
					items[j][k] = i;
					break LABEL;
				}
			}
		}
	}

}
